#include "BaseGameEntity.h"
#include <cassert>

int BaseGameEntity::siNextID = 0;

void BaseGameEntity::SetID(int val)
{
  //make sure the val is equal to or greater than the next available ID
  assert ( (val >= siNextID) && "<BaseGameEntity::SetID>: invalid ID");

  iID = val;
    
  siNextID = iID + 1;
}